package com.biscuit.common.base;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * @author mazihao
 * @createTime 2024/3/7 17:11
 */
@Getter
@Setter
public class BasePageRequest extends BaseAMO {

    private Integer pageNo;

    private Integer pageSize;

    public void check() {
        this.pageNo = (this.pageNo != null && this.pageNo > 0) ? this.pageNo : 1;
        this.pageSize = (this.pageSize != null && this.pageSize > 0) ? this.pageSize : 10;
    }

}